package com.fadadianqi.logistics.customer.dao;

import com.fadadianqi.commons.BaseDAO;
import com.fadadianqi.logistics.customer.model.Account;
import com.yeqiangwei.commons.util.Pagination;

import java.util.Date;
import java.util.List;

public interface AccountDAO extends BaseDAO<Account> {

    List<Account> findByCustomerId(String customerId, Pagination pagination);

    int countByCustomerId(String customerId);

    List<Account> findByCustomerIdBetween(String customerId, Date b, Date e, Pagination pagination);

    List<Account> getBalanceEnd(String id, Date b);

    List<Account> findByBillId(String billId);

}
